package com.example.eurekaconsumer;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public class Demo {
    //2019-01-16 14:40:33.0
    public static void main(String[] args){
        DateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss:SSSS");
        DateTime dateTime = dateTimeFormatter.parseDateTime("2019-01-16 14:40:33.135");
        System.out.println(dateTime);

    }
}
